//index.js
//获取应用实例
const app = getApp()

Page({

  data: {
    //顶部轮播图
    imgUrls: [
      'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_4.jpg',
      'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_3.jpg',
      'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_2.jpg',
      'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_1.jpg'
    ],
    //第二部分数据数组
    contentImgUrls: [{
        id: '1',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_03.jpg'
      }, {
        id: '2',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_033.jpg'
      }, {
        id: '3',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_11.jpg'
      }, {
        id: '4',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_12.jpg'
      }, {
        id: '5',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_05.jpg'
      }, {
        id: '6',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_06.jpg'
      }, {
        id: '7',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_07.jpg'
      }, {
        id: '8',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_08.jpg'
      }, {
        id: '9',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_13.jpg'
      }, {
        id: '10',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_014.jpg'
      }, {
        id: '11',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_044.jpg'
      }, {
        id: '12',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_04.jpg'
      }, {
        id: '13',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_01.jpg'
      }, {
        id: '14',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_10.jpg'
      }, {
        id: '15',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_09.jpg'
      }, {
        id: '16',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/相思_02.jpg'
      },

    ],

    indicatorDots: true, //显示面板显示点
    autoplay: true, //自动切换
    interval: 3000, //切换时间
    duration: 1000 //动画时长
  },


  //到天气查询页
  toWeatherQuery: function(e) {
    console.log("城市名称" + this.data.cityName2 + "名称" + this.data.userName)
    wx.navigateTo({
      url: '../../weather/weather'
    })
  },
  toyuxiang: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  toHeroMemories: function(e) {
    wx.navigateTo({
      url: '../HeroMemories/HeroMemories'
    })
  },
  to_001: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_002: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_003: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_004: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_005: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_006: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },


})